package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_jes_vote_ret table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="t_jes_vote_ret"
 */

public abstract class BaseTJesVoteRet  implements Serializable {

	public static String REF = "TJesVoteRet";
	public static String PROP_VOTEID = "Voteid";
	public static String PROP_GITEMID = "Gitemid";
	public static String PROP_ITEMID = "Itemid";
	public static String PROP_USERID = "Userid";
	public static String PROP_VOTETIME = "Votetime";
	public static String PROP_CONTENT = "Content";
	public static String PROP_ID = "Id";


	// constructors
	public BaseTJesVoteRet () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTJesVoteRet (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String voteid;
	private java.lang.String itemid;
	private java.lang.String gitemid;
	private java.lang.String content;
	private java.lang.String userid;
	private java.util.Date votetime;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: VOTEID
	 */
	public java.lang.String getVoteid () {
		return voteid;
	}

	/**
	 * Set the value related to the column: VOTEID
	 * @param voteid the VOTEID value
	 */
	public void setVoteid (java.lang.String voteid) {
		this.voteid = voteid;
	}



	/**
	 * Return the value associated with the column: ITEMID
	 */
	public java.lang.String getItemid () {
		return itemid;
	}

	/**
	 * Set the value related to the column: ITEMID
	 * @param itemid the ITEMID value
	 */
	public void setItemid (java.lang.String itemid) {
		this.itemid = itemid;
	}



	/**
	 * Return the value associated with the column: GITEMID
	 */
	public java.lang.String getGitemid () {
		return gitemid;
	}

	/**
	 * Set the value related to the column: GITEMID
	 * @param gitemid the GITEMID value
	 */
	public void setGitemid (java.lang.String gitemid) {
		this.gitemid = gitemid;
	}



	/**
	 * Return the value associated with the column: CONTENT
	 */
	public java.lang.String getContent () {
		return content;
	}

	/**
	 * Set the value related to the column: CONTENT
	 * @param content the CONTENT value
	 */
	public void setContent (java.lang.String content) {
		this.content = content;
	}



	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: VOTETIME
	 */
	public java.util.Date getVotetime () {
		return votetime;
	}

	/**
	 * Set the value related to the column: VOTETIME
	 * @param votetime the VOTETIME value
	 */
	public void setVotetime (java.util.Date votetime) {
		this.votetime = votetime;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.TJesVoteRet)) return false;
		else {
			com.lovejes.app.domain.TJesVoteRet tJesVoteRet = (com.lovejes.app.domain.TJesVoteRet) obj;
			if (null == this.getId() || null == tJesVoteRet.getId()) return false;
			else return (this.getId().equals(tJesVoteRet.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}